<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<ul>

<c:choose>
	<c:when test="${!empty status && status eq 'pendingincomming'}">
		<c:forEach items="${friends}" var="friendship">
			<li>
			<h3><a href="${baseUrl}/friends/user/info/${friendship.user.id}">${friendship.user.fullName}</a></h3>
			<a href="${baseUrl}/friends/confirm/${friendship.id}">Accept request</a>
			</li>
		</c:forEach>
	</c:when>
	
	<c:otherwise>
		<c:forEach items="${friends}" var="friendship">
			<li>
			<h3><a href="${baseUrl}/friends/info/${friendship.friend.id}">${friendship.friend.fullName}</a></h3>
			</li>
		</c:forEach>
	</c:otherwise>
</c:choose>

</ul>

<div class="clear"></div>